var mySwiper = new Swiper ('.swiper', {
    // direction: 'vertical', // 垂直切换选项
    loop: true, // 循环模式选项
    initialslide: 0,
  speed: 1000,
  // effect:'flip',
  effect: "fade",
  autoplay: true,
    
    // 如果需要分页器
    pagination: {
      el: '.swiper-pagination',
    },
    
    // 如果需要前进后退按钮
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
    
    // 如果需要滚动条
    scrollbar: {
      el: '.swiper-scrollbar',
    },
  })       
// 获取登录状态
  let logintype = localStorage.getItem("logintype")
  console.log(logintype)
  if(logintype){
	  $(".login").hide();
	  
	  $(".exitlogin").show();
	  console.log("登录")
	  $(".loginname").html(localStorage.getItem("tel"))
  }else{
	  console.log("未登录")
  }
  
  
  pAjax({
    url:'https://www.wsy.com/boutique/manage/guess-like-new',
    dataType:'json'

  }).then (res => {
    console.log(res)
  });
  
  function todetails(){
	  // console.log("跳转详情")
	  window.location.href="./details.html"
  }
  // 退出登录
  function exitlogin(){
	  $(".login").show();
	  
	  $(".exitlogin").hide();
	  console.log("登录")
	  $(".loginname").html("HI")
	  localStorage.setItem("logintype",false)
  }


//  搜索引擎


    